<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */


class Admin_Form_Access_Edit extends Admin_Form_Access_AddArea
{
    const ACTION = 'edit';

    public function init()
    {
        parent::init();

        $action = $this->createElement('hidden','action');
        $action->setValue(self::ACTION);

        $this->addElement($action);
    }

    public function fillForm(Core_Model_Access $access)
    {
        $this->getElement('area')->setValue($access->area);
    }
}
